package com.example.esc_im_client.ui.my;

import android.util.Log;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

/**
 * @ClassName: DemoViewModel
 * @Description:
 * @Author: 墨渍
 * @Date: 2023/8/23 23:01
 **/
public class MyViewModel extends ViewModel {

    private final MutableLiveData<String> mText;
    private final MutableLiveData<String> mText1;

    public MyViewModel() {
        mText = new MutableLiveData<>();
        mText.setValue("我的");
        mText1 = new MutableLiveData<>();
        mText1.setValue("测试");
        Log.d("arge", "进入我的页面");

    }

    public LiveData<String> getText() {
        return mText;
    }

    public LiveData<String> getText1() {
        return mText1;
    }
}
